﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MengLin.OOP.DesignPattern.BridgePattern.MultiPlatformMFormatLog.Interface
{
    public abstract class AbstractLog
    {
        /// <summary>
        /// 运行平台(.Net/Jave)
        /// </summary>
        private IPlatform _iPlatform;
        public IPlatform IPlatform
        {
            get => _iPlatform;
            set => _iPlatform = value;
        }

        /// <summary>
        /// 写日志
        /// </summary>
        public virtual void Write(string log)
        {
            _iPlatform.Execute();
        }

        /// <summary>
        /// 读日志
        /// </summary>
        public virtual void Read()
        {
            _iPlatform.Execute();
        }
    }
}
